package com.test.gpa.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/*** 菜单表(Menu)实体类 ** @author makejava * @since 2021-11-24 15:30:08 */

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "sys_menu")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Menu implements Serializable {
    private static final long serialVersionUID = -54979041104113736L;
    @Id
    private Long id;
    /**
     * 菜单名
     */
    @Column(name="menu_name")
    private String menuName;
    /**
     * 路由地址
     */
    @Column(name="path")
    private String path;
    /**
     * 组件路径
     */
    @Column(name="component")
    private String component;
    /**
     * 菜单状态（0显示 1隐藏）
     */
    @Column(name="visible")
    private String visible;
    /**
     * 菜单状态（0正常 1停用）
     */
    @Column(name="status")
    private String status;
    /**
     * 权限标识
     */
    @Column(name="perms")
    private String perms;
    /**
     * 菜单图标
     */
    @Column(name="icon")
    private String icon;

    private Long createBy;
    private Date createTime;
    private Long updateBy;
    private Date updateTime;
    /**
     * 是否删除（0未删除 1已删除）
     */
    @Column(name="del_flag")
    private Integer delFlag;
    /**
     * 备注
     */
    @Column(name="remark")
    private String remark;
}
